<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('omg/index')}">开户列表</a></li>
			<!-- <li><a href="{:url('fbfans/add')}">添加粉丝页管理列表</a></li> -->
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('omg/applyList')}">
            查询:
            <input type="text" class="form-control" name="name" style="width: 180px;" value="{:input('request.name/s','')}" placeholder="">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('omg/applyList')}">清空</a>
        </form>  

        <form class="well form-inline margin-top-20" name="time" method="post" action="">
            <!-- <input type="text" class="form-control" name="domainname" style="width: 180px;" value="{:input('request.domainname/s','')}" placeholder="域名"> -->
            开始时间
            <input class="form-control js-bootstrap-date" type="text" name="star_time"
                                   value="">
            结束时间
            <input class="form-control js-bootstrap-date" type="text" name="end_time"
                                   value="">
            <button onclick="findtime()" class="btn btn-danger js-ajax-submit">查询</button>
        </form>

        <form class="well form-inline margin-top-20" method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('omg/applyExcelAdd')}">
			<div class="form-group">
				 <input id="excel-7" type="hidden" name="excel_url" >
				 <input  id="excel-7-name" type="text" name="excel_name" placeholder="导入表格名称" class="form-control"  style="widtd: 120px;">
				 <a style="padding: 7px 8px;" href="javascript:uploadOne('Excel上传','#excel-7','file');" class="btn btn-sm btn-primary">选择上传文件</a>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-12">
					<button onclick="applyin()" class="btn btn-danger js-ajax-submit">申户导入</button>
					<!-- <button onclick="downin()" class="btn btn-info js-ajax-submit">下户导入</button> -->
<!-- 					<button onclick="applylist()" class="btn btn-warning js-ajax-submit">查询</button> -->
				</div>
			</div>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>部门</th>
					<th>站长</th>
					<th>二级站长</th>
					<th>主体</th>
					<th>域名</th>
					<th>网站类别</th>
					<th>代理</th>
					<th>申户数</th>
					<th>提交申户时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="apply_lists" item="vo">
					<tr>
						<td>{$vo.department}</td>
						<td>{$vo.master }</td>
						<td>{$vo.second_master }</td>
						<td>{$vo.main }</td>
						<td>{$vo.domain}</td>
						<td>{$vo.website_category}</td>
						<td>{$vo.agent}</td>
						<td>{$vo.a_num}</td>
						<td>{$vo.a_time}</td>
						<td>
							<a href='{:url("omg/applyEdit",array("id"=>$vo.id))}'>{:lang('EDIT')}</a>
						</td>
					</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script>
		//申户上传
	    function applyin(){
	        document.time.action="{:url('omg/applyExcelAdd')}";
	        document.time.submit();
	    }
	    //下户上传
	    function downin(){
	        document.time.action="{:url('omg/downExcelAdd')}";
	        document.time.submit();
	    }
	    //申户列表
	    function applylist() {
	        document.time.action = "{:url('omg/applyList')}";
	        document.time.submit();
	    }
		
		//查询时间
            function findtime() {
                document.time.action = "{:url('omg/applyList')}";
                document.time.submit();
            }
	</script>
</body>
</html>
